/**
 * Tungsten Scale-Out Stack
 * Copyright (C) 2011-13 Continuent Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this library.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Initial developer(s): Robert Hodges
 * Contributor(s):
 */
package com.continuent.tungsten.fsm.event.test;

import java.util.ArrayList;
import java.util.List;

import com.continuent.tungsten.fsm.core.Event;
import com.continuent.tungsten.fsm.event.EventCompletionListener;
import com.continuent.tungsten.fsm.event.EventStatus;

/**
 * Sample listener used for unit tests.
 */
class SampleStatusListener implements EventCompletionListener
{
    List<EventStatus> statusList = new ArrayList<EventStatus>(10);

    @Override
    public Object onCompletion(Event event, EventStatus status)
            throws InterruptedException
    {
        statusList.add(status);
        return null;
    }

    List<EventStatus> getStatusList()
    {
        return statusList;
    }
}